projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80efa20
)
Tweak earlier version.el change
author
Glenn Morris
<rgm@gnu.org>
Wed, 22 Jan 2014 21:14:34 +0000
(16:14 -0500)
committer
Glenn Morris
<rgm@gnu.org>
Wed, 22 Jan 2014 21:14:34 +0000
(16:14 -0500)
lisp/version.el
patch
|
blob
|
history
diff --git
a/lisp/version.el
b/lisp/version.el
index 4f5bb67585af560503ed5bcfce6f1cb190611bdb..25b7f3e3c532a243ab755c4caeeb80d0ac6e5b92 100644
(file)
--- a/
lisp/version.el
+++ b/
lisp/version.el
@@
-186,9
+186,10
@@
only ask the VCS if we cannot find any information ourselves."
(with-temp-buffer
(let ((default-directory (file-name-as-directory dir)))
(and (eq 0
- (ignore-errors
- (call-process "git" nil '(t nil) nil "log"
- "-1" "--pretty=format:%N")))
+ (condition-case nil
+ (call-process "git" nil '(t nil) nil "log"
+ "-1" "--pretty=format:%N")
+ (error nil)))
(not (zerop (buffer-size)))
(replace-regexp-in-string "\n" "" (buffer-string))))))))